import tree from './src/tree'

const components = [
  tree
]

const install = function (Vue, opts = {}) {
  components.forEach((component) => {
    Vue.component(component.name, component)
  })
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}

const exp = {
  install,
  tree
}

export default exp
